package com.ruoyi.ora.mapper;

import java.util.List;
import com.ruoyi.ora.domain.DeviceMessage;
import org.apache.ibatis.annotations.Param;

/**
 * app给设备发送的消息，设备端轮训获取Mapper接口
 * 
 * @author liuwp
 * @date 2025-06-19
 */
public interface DeviceMessageMapper 
{
    /**
     * 查询app给设备发送的消息，设备端轮训获取
     * 
     * @param id app给设备发送的消息，设备端轮训获取主键
     * @return app给设备发送的消息，设备端轮训获取
     */
    public DeviceMessage selectDeviceMessageById(Long id);

    /**
     * 查询app给设备发送的消息，设备端轮训获取列表
     * 
     * @param deviceMessage app给设备发送的消息，设备端轮训获取
     * @return app给设备发送的消息，设备端轮训获取集合
     */
    public List<DeviceMessage> selectDeviceMessageList(DeviceMessage deviceMessage);

    /**
     * 可以业务主键查询一条app给设备发送的消息，设备端轮训获取
     *
     * @param deviceMessage app给设备发送的消息，设备端轮训获取
     * @return app给设备发送的消息，设备端轮训获取集合
     */
    public DeviceMessage selectOneDeviceMessage(DeviceMessage deviceMessage);

    /**
     * 新增app给设备发送的消息，设备端轮训获取
     * 
     * @param deviceMessage app给设备发送的消息，设备端轮训获取
     * @return 结果
     */
    public int insertDeviceMessage(DeviceMessage deviceMessage);

    /**
     * 修改app给设备发送的消息，设备端轮训获取
     * 
     * @param deviceMessage app给设备发送的消息，设备端轮训获取
     * @return 结果
     */
    public int updateDeviceMessage(DeviceMessage deviceMessage);

    /**
     * 条件修改app给设备发送的消息，设备端轮训获取
     *
     * @param deviceMessage app给设备发送的消息，设备端轮训获取
     * @param deviceMessage app给设备发送的消息，设备端轮训获取条件
     * @return 结果
     */
    public int updateDeviceMessageCondition(@Param("deviceMessage") DeviceMessage deviceMessage, @Param("deviceMessageCondition") DeviceMessage deviceMessageCondition);

    /**
     * 删除app给设备发送的消息，设备端轮训获取
     * 
     * @param id app给设备发送的消息，设备端轮训获取主键
     * @return 结果
     */
    public int deleteDeviceMessageById(Long id);

    /**
     * 条件删除app给设备发送的消息，设备端轮训获取
     *
     * @param deviceMessage app给设备发送的消息，设备端轮训获取
     * @return 结果
     */
    public int deleteDeviceMessageByCondition(DeviceMessage deviceMessage);

    /**
     * 批量删除app给设备发送的消息，设备端轮训获取
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDeviceMessageByIds(Long[] ids);
}
